package com.xingfudazi.app.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xingfudazi.app.domain.AppFollowRel;
import com.xingfudazi.app.dto.MemberAvatar;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author YuJiaMing
 * date 2024年07月22日 15:02
 */
public interface AppFollowRelMapper  extends BaseMapper<AppFollowRel> {
    List<MemberAvatar> dogTurn(@Param(value = "pageSize") Integer pageSize, @Param(value = "lastId")  Long lastId, @Param(value = "search")  String search, @Param(value = "userId")  Long userId);

    List<MemberAvatar> loveTurn(@Param(value = "pageSize") Integer pageSize, @Param(value = "lastId")  Long lastId, @Param(value = "search")  String search, @Param(value = "userId")  Long userId);


    /**
     * 互相喜欢统计
     */
    Long loveTurnCount(@Param(value = "userId")  Long userId);
}
